.statusbar {
  display: flex;
  align-items: center;
  background: $statusbar-bg;
  color: rgba($statusbar-text, 0.57);
  min-height: $statusbar-height;
  height: $statusbar-height;
  line-height: $statusbar-height *0.8;
  font-size: 0.8rem;
  padding: 0 $gutter-h;
  overflow: hidden;
  > .col {
    display: flex;
    align-items: center;
  }
  .badge {
    border-radius: 1.8rem;
  }
  .btn {
    color: $statusbar-text;
    height: $statusbar-height * 0.8;
    line-height: $statusbar-height * 0.8;
    min-width: 0;
    margin-left: 0.15rem;
    margin-right: 0.15rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    border-radius: $btn-border-radius-small;
    transition: background 0.15s ease-in-out;
    &:hover {
      background: rgba($statusbar-text, 0.05);
    }
    &.btn-primary {
      background: rgba($theme-base, 0.15);
      &:hover {
        background: rgba($theme-base, 0.2);
      }
    }
    &.error, &.error:hover {
      pointer-events: all !important;
    }
    .material-icons {
      font-size: 16px;
    }
  }
  a {
    color: $statusbar-text;
  }
  span.row {
    .material-icons {
      font-size: 16px;
      margin-right: $gutter-h * 0.5;
    }
  }

  // Connection Status
  // ---------------------------
  .connection-button,
  .connection-button > .btn {
    height: $statusbar-height;
    line-height: $statusbar-height;
    margin: -$gutter-h;
    padding: 0 $gutter-h;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow: hidden;
  }
  .connection-name {
    font-size: 0.85rem;
  }
  .connection-button {
    position: relative;
    .material-icons {
      font-size: 20px;
      min-width: 32px;
      text-align: center;
    }
    > .btn {
      text-align: left;
      border-radius: 0;
      --trigger-effect: none;
    }
    .badge {
      min-width: fit-content;
    }
    x-menu {
      width: 220px;
    }
  }

  // No Data
  // -----------------------
  .empty {
    padding: 0 $gutter-h;
  }

  // Row Actions
  // -------------------------
  .statusbar-actions {
    margin-right: auto;
    x-buttons {
      border-radius: $btn-border-radius-small;
      overflow: hidden;
      margin-top: -1px;
      .btn {
        border-radius: 0;
      }
    }
    .btn {
      margin-left: 0.35rem;
      margin-top: -1px;
      --ripple-background: none;
      &.btn-flat,
      &.btn-link {
        &:hover {
          background: rgba($theme-base, 0.1);
        }
      }
    }
  }

  // Download Results
  .download-results {
    border-radius: $btn-border-radius-small;
    overflow: hidden;
    margin-top: -1px;
    .btn {
      color: $text-dark;
      margin: 0;
      border-radius: 0;
      &[menu] {
        .material-icons {
          font-size: 16px;
        }
      }
    }
    .material-icons {
      color: $text-dark;
      font-size: 18px;
    }
  }

  // Actions
  .actions-btn {
    padding: 0 0.2rem 0 0.35rem;
    background: transparent;
    box-shadow: none!important;
    .material-icons {
      width: 16px;
    }
  }

  // Pending Changes
  .pending-changes {
    margin-left: 0.1rem;
    .btn {
      // padding-left: 0.5rem;
      margin: 0;
    }
    .badge {
      background: transparent;
      // box-shadow: inset 0 0 0 1px rgba($theme-base, 0.25);
      padding: 0;
      line-height: 16px;
      margin-left: 0;
    }
    .material-icons {
      font-size: 14px;
      overflow: visible;
      line-height: 1.1;
    }
  }

  // Results Select
  // -------------------------
  .result-selector {
    margin-right: $gutter-h;
  }
  .select-wrap {
    box-shadow: none;
    background: rgba($statusbar-text, 0.1);
    &:hover {
      background: rgba($statusbar-text, 0.15);
    }
  }
  select {
    color: $statusbar-text;
    height: $statusbar-height * 0.8;
    line-height: $statusbar-height * 0.8;
  }

  // Query Status
  // ----------------------------
  .statusbar-item {
    display: inline-flex;
    align-items: center;
    padding: 0 $gutter-h;
    line-height: $statusbar-height;
    overflow: hidden;
    text-overflow:ellipsis;
    .material-icons {
      font-size: 16px;
      line-height: $statusbar-height;
      margin-right: 0.25rem;
      opacity: 0.65;
      width: 16px;
    }
    &.error {
      color: $text-dark;
      font-size: 0.75rem;
      padding-right: 2rem;
      .material-icons {
        color: $theme-base;
      }
      > span {
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }
    &.hoverable:hover, 
    &.hoverable:focus {
      color: $text-dark;
      transition: color 0.15s ease-in-out;
      outline: none;
    }
  }
  .row-counts {
    .truncated-rows, .records {
      margin-left: $gutter-h * 0.5;
    }
  }

  .statusbar-info {
    min-width: 33.3333%;
  }
}
